import {
  Radio,
  Button,
  Row,
  Col,
  Input,
  Table,
  TableColumn,
  Pagination,
  Message,
  MessageBox,
  Notification,
  Loading,
  Menu,
  MenuItem,
  Image,
  Popover,
  Carousel,
  Select,
  Option
} from 'element-ui'

import PopupManager from 'element-ui/lib/utils/popup/popup-manager'

PopupManager.zIndex = 19870100

const element = {
  install: function(Vue) {
    Vue.use(Input)
    Vue.use(Radio)
    Vue.use(Row)
    Vue.use(Col)
    Vue.use(Table)
    Vue.use(TableColumn)
    Vue.use(Button)
    Vue.use(Pagination)
    Vue.use(Loading)
    Vue.use(Menu)
    Vue.use(MenuItem)
    Vue.use(Image)
    Vue.use(Popover)
    Vue.use(Carousel)
    Vue.use(Select)
    Vue.use(Option)

    Vue.prototype.$message = Message
	  Vue.prototype.$confirm = MessageBox.confirm
	  Vue.prototype.$alert = MessageBox.alert
	  Vue.prototype.$notify = Notification
  }
}

export default element
